#!/bin/bash
echo "启动K8s服务端口转发..."

# 启动所有需要的端口转发
kubectl port-forward svc/mysql-service 3306:3306 &
kubectl port-forward svc/quickstart-es-http 9200:9200 &
kubectl port-forward svc/quickstart-kb-http 5601:5601 &
kubectl port-forward svc/seata-server 8091:8091 &


echo "端口转发已启动："
echo "MySQL: localhost:3306"
echo "es: localhost:9200"
echo "kibana: localhost:5601"
echo "seata服务: localhost:8091"

# 等待所有任务
wait